package com.kky.pp.activity.member.album

import android.content.Intent
import android.view.LayoutInflater
import android.widget.ImageView
import android.widget.TextView
import com.kky.pp.R
import io.rong.imkit.event.EnumEventTag
import com.gyf.immersionbar.ImmersionBar
import com.custom.base.mvp.MVPBaseActivity
import com.luck.picture.lib.widget.TitleBar
import com.custom.base.base.SDBaseEvent
import com.kky.pp.databinding.ActPrivateAlbumsViewBinding

/**
 * 私密相册
 */
class PrivateAlbumViewActivity : MVPBaseActivity<PrivateAlbumViewContract.View, PrivateAlbumViewPresenter,ActPrivateAlbumsViewBinding>(ActPrivateAlbumsViewBinding::inflate),
    PrivateAlbumViewContract.View {

    override fun setFullScreen(): Boolean {
        return true
    }

    override fun bindLayout(): Int {
        return R.layout.act_private_albums_view
    }

    override fun initView() {
        viewBinding.titleBar.setOnTitleBarListener(object : TitleBar.OnTitleBarListener() {
            override fun onBackPressed() {
                finish()
            }
        })
    }
    override fun onResume() {
        super.onResume()
        ImmersionBar.with(this)
            .statusBarColor("#000000")
            .statusBarDarkFont(false)
            .init()

    }
    override fun onEventMainThread(event: SDBaseEvent) {
        when (EnumEventTag.valueOf(event.tagInt)) {
            EnumEventTag.PRIVATE_ALBUMS_REMOVE->{
            }
            else -> {}
        }
    }


    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
        super.onActivityResult(requestCode, resultCode, data)
    }

    override val imgSecretAlbumViews: ImageView
        get() = viewBinding.imgSecretAlbumView
    override val imgDone: TextView
        get() = viewBinding.imgDone
}